%option noyywrap
%{
#include <iostream>
#include "stdio.h"
#include "stdlib.h"
using namespace std;
%}
 int no_num=0;
 int all_num=0;
 long long  all[20]={0};
 int key=0;

delim      [ \t\n]
ws         {delim}+
first       ^[0-9]{9}
end         NAME$
digit      [0-9]
number     {digit}+(\.{digit}+)?(E[+\-]?{digit}+)?
%%
{end}           {printf("xy");}
{first}          {printf("201492182");}
{number}            {
int i=0;int flag=0;
long long a=atof(yytext)*2+201492182+0.5;
for(i=0;i<key;i++)
if(all[i]==a)
flag=1;
if(flag==1)
{
all_num++;
}
else {all_num++;all[key++]=atof(yytext)*2+201492182+0.5;no_num=key;}
//printf("%l64d",all[key-1]);
cout<<all[key-1];
}
%%
int main(){
yylex();
printf("出现次数%d\t去重后次数%d\n",all_num,no_num);
return 0;
}
